<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

String s[]=new String[10];
 s[0]=request.getParameter("name");
 s[1]=request.getParameter("type");
 s[2]=request.getParameter("color");
 s[3]=request.getParameter("timeConsuming");
 s[4]=request.getParameter("price");
 s[5]=request.getParameter("remark");
 for(int i=0;i<=5;i++)
   {if(s[i].equals("Null")) s[i]="";}
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updateInfo.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
   <meta charset="utf-8"> 
   <title>Bootstrap 实例 - 偏移列</title>
   <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">  
   <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
   <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

	<script type="text/javascript">
		function verify(){
			var num=document.form1.age.value;
			if(isNaN(num)){
				alert("请输入整数！");
				document.form1.age.focus();
			}
		}
	</script>
	
	<script type="text/javascript">
		function printPhone(barber){
			var nv1=document.getElementById("pid");
			var nv2=document.getElementById("phone");
			if(barber=='小温')
			   {
			   		nv1.innerHTML="18818818888";
			   		nv2.value="18818818888";
			   };
			if(barber=='2')
			   {
			   		nv1.innerHTML="18818818666";
			   		nv2.value="18818818666";
			   };
			if(barber=='3')
			   {
			   		nv1.innerHTML="18818818555";
			   		nv2.value="18818818555";
			   };
			if(barber=='4')
			   {
			   		nv1.innerHTML="18818818222";
			   		nv2.value="18818818222";
			   };
		}
	</script>
  </head>
  
  <body>
  <div class="container">

   <h1>订单处理</h1>

   <div class="row" >
      <div class="col-xs-6 col-md-offset-3" 
         style="background-color: #dedef8;box-shadow: 
         inset 1px -1px 1px #444, inset -1px 1px 1px #444;">
  
<!--     订单处理 <p> -->
    <form name="form1" action="order.action" method="post">
   产品：<label for="username"><%=s[0] %></label><input type="hidden" name="name" value=<%=s[0] %> ><p>
    类型：<%=s[1] %> <input type="hidden" name="type" value=<%=s[1] %> ><p>
    颜色：<%=s[2] %> <input type="hidden" name="color" value=<%=s[2] %> ><p>
    耗时：<%=s[3] %> <input type="hidden" name="timeConsuming" value=<%=s[3] %> ><p>
    价格：<%=s[4] %> <input type="hidden" name="price" value=<%=s[4] %> ><p>
    备注：<%=s[5] %> <input type="hidden" name="remark" value=<%=s[5] %> ><p>
    选择造型师：<select name="barber" onchange="printPhone(this.value)">
		  <option value="小温">小温</option>
		  <option value="2">小卢</option>
		  <option value="3">小谢</option>
		  <option value="4">小陆</option>
		</select><p/>
	联系电话：<p id="pid">18818818888</p> <input type="hidden" id="phone" name="phone" value="18818818888" >
    <!-- <input type="submit" value="确认下单"/> -->
    <button type="submit" class="btn btn-primary">确认下单</button>
    <!-- <input type="button" value="返回" onClick="javascript:history.back(-1)"/> -->
    <button type="button" class="btn btn-warning">返回</button>
    </form>
    
    </div>

   </div>
</div>

  </body>
</html>
